from RestAPI.amazon.service import AWSrequest,AWSservice
class STSRequest(AWSrequest):
    pass
class IAMRequest(AWSrequest):
    pass
class STSsession(AWSservice):
    def getFederationToken(self):
        pass
    def getSessionToken(self):
        pass
class User(object):
    def __init__(self,name="",id=""):
        self.name=name
        self.id=id
    def fromXml(self,data):
        data=DataNode(data)
        self.name=data.DisplayName.value()
        self.id=data.ID.value()
        return self
    def group(self,mygroup):
        pass 
    def __hash__(self):
        return hash(str(self.id))
    def __eq__(self,other):
        return (self.id) == (other.id)

##
#
class UserCredential (object):
    def __init__(self,):
        pass

class temporaryCredential(UserCredential):
    pass
class FederationUser:
    pass
